<template>
  <div id='app'>
    <keep-alive>
      <!-- 在路由中添加元信息用来判断是否需要缓存起来 -->
      <router-view v-if="this.$route.meta.isKeepAlive"/>
    </keep-alive>
    <!-- 等于true就显示在keepAlive里面，等于false就显示在keepAlive外面 -->
    <router-view v-if="!this.$route.meta.isKeepAlive"/>
  </div>
</template>
<style scoped>
</style>
